<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="content-type" content="text/html;charset=UTF-8" />
        <title><%= @page_title || "GruTalk: Efficient Communication within Groups" %></title>
        <%= stylesheet_link_tag 'talk' %>
		<%= stylesheet_link_tag 'grutalk' %>
        <%= javascript_include_tag :defaults, :cache => true %>
    </head>

<body>
<div id="container">
	<div id="topmenu">
		<% if @user%>
				Welcome <b><%=@user.username%></b> |
				<%= link_to "Home", :controller=>"account", :action=>"home"%> |
				<%= link_to "Talks", :controller=>"talks", :action=>"index"%> |
				<%= link_to "Profile", :controller=>"profile", :action=>"personal"%> |
				<%= link_to "Settings", :controller=>"setting", :action=>"index"%> |
				<%= link_to	"Sign Out", :controller=>"account", :action=>"signout"%>
		<% else%>
				<%= link_to "Sign In", :controller=>"account", :action=>"signin"%>
		<% end%>
	</div>
	<br class="clearfloat" />
  	<div id="header">
  		<table>
  			<tr>
  				<td><%= link_to image_tag("GruTalk.png",:border=>0 ), :controller=>'account', :action=>'start' %></td>
				<td><%= image_tag("ec.png", :align=>'right') %></td>
  			</tr>
  		</table>
	</div>
	<br class="clearfloat" />
  	<div id="mainContent">
  		<% if flash[:notice]%>
		<div id="flash"><%= flash[:notice]%></div>
		<% end%>
    	<div id="content"><%= yield :layout %></div>
   </div>   
   
   <br class="clearfloat" />
   <div id="footer">
   		about | contact | site map
   </div>

</div>

    </body>
</html>
